import { defineComponent, computed, mergeProps, unref, withCtx, openBlock, createBlock, createCommentVNode, createVNode, toDisplayString, useSSRContext } from "vue";
import { ssrRenderComponent, ssrInterpolate } from "vue/server-renderer";
import { S as SelectedFillIcon } from "./SelectedFillIcon-f745105e.js";
import { j as useTrack, W as submitCompleteRoute, l as useNativeInfoStore, A as AppLayout, H as HelpCenterHeader, y as navNativePage, a0 as exitAppWebPage, _ as _export_sfc } from "../entry-server.js";
import { useRouter } from "vue-router";
import { useI18n } from "vue-i18n";
import { u as useDocumentTitle } from "./index-17d7ee25.js";
import "path";
import "lodash-es";
import "pinia";
import "dayjs";
import "dayjs/plugin/utc.js";
import "qs";
import "axios";
import "big.js/big.mjs";
import "@vueuse/core";
import "uuid";
import "url";
import "fs/promises";
const __default__ = defineComponent({
  name: "SubmitComplete",
  components: { HelpCenterHeader, SelectedFillIcon, AppLayout }
});
const _sfc_main = /* @__PURE__ */ defineComponent({
  ...__default__,
  __ssrInlineRender: true,
  setup(__props) {
    useTrack();
    const trackPageName = computed(() => {
      var _a;
      const name = ((_a = submitCompleteRoute.meta) == null ? void 0 : _a.trackPageName) || "";
      return name ? name + "_" : "";
    });
    const router = useRouter();
    const { t } = useI18n();
    const nativeInfoStore = useNativeInfoStore();
    function onViewHomePage() {
      if (nativeInfoStore.isFromApp) {
        navNativePage({ url: "patpat://?action=homepage" }, false);
      } else {
        router.replace("/");
      }
    }
    function onGoBack() {
      if (nativeInfoStore.isFromApp) {
        exitAppWebPage();
      } else {
        router.back();
      }
    }
    useDocumentTitle(t("helpCenter.Submit_Ticket"));
    return (_ctx, _push, _parent, _attrs) => {
      _push(ssrRenderComponent(AppLayout, mergeProps({
        class: "submit-complete",
        "clear-safe-top-area": unref(nativeInfoStore).isFromApp
      }, _attrs), {
        default: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            if (!unref(nativeInfoStore).isFromApp) {
              _push2(ssrRenderComponent(HelpCenterHeader, {
                "left-btn-event-name": trackPageName.value + "back",
                title: unref(t)("helpCenter.Submit_Ticket")
              }, null, _parent2, _scopeId));
            } else {
              _push2(`<!---->`);
            }
            _push2(`<div class="content" data-v-a26973af${_scopeId}>`);
            _push2(ssrRenderComponent(unref(SelectedFillIcon), {
              width: 64,
              height: 64,
              color: "#3c9e81"
            }, null, _parent2, _scopeId));
            _push2(`<p class="content1 txt1" data-v-a26973af${_scopeId}>${ssrInterpolate(unref(t)("helpCenter.received_your_ticket"))}</p><p class="content2 txt2" data-v-a26973af${_scopeId}>${ssrInterpolate(unref(t)("helpCenter.reply_within_2_days"))}</p><div class="btns content2" data-v-a26973af${_scopeId}><button class="button" data-v-a26973af${_scopeId}>${ssrInterpolate(unref(t)("game_activity.go_shopping"))}</button><button class="button" data-v-a26973af${_scopeId}>${ssrInterpolate(unref(t)("account.help.My_Service"))}</button></div></div>`);
          } else {
            return [
              !unref(nativeInfoStore).isFromApp ? (openBlock(), createBlock(HelpCenterHeader, {
                key: 0,
                "left-btn-event-name": trackPageName.value + "back",
                title: unref(t)("helpCenter.Submit_Ticket")
              }, null, 8, ["left-btn-event-name", "title"])) : createCommentVNode("", true),
              createVNode("div", { class: "content" }, [
                createVNode(unref(SelectedFillIcon), {
                  width: 64,
                  height: 64,
                  color: "#3c9e81"
                }),
                createVNode("p", { class: "content1 txt1" }, toDisplayString(unref(t)("helpCenter.received_your_ticket")), 1),
                createVNode("p", { class: "content2 txt2" }, toDisplayString(unref(t)("helpCenter.reply_within_2_days")), 1),
                createVNode("div", { class: "btns content2" }, [
                  createVNode("button", {
                    class: "button",
                    onClick: onViewHomePage
                  }, toDisplayString(unref(t)("game_activity.go_shopping")), 1),
                  createVNode("button", {
                    class: "button",
                    onClick: onGoBack
                  }, toDisplayString(unref(t)("account.help.My_Service")), 1)
                ])
              ])
            ];
          }
        }),
        _: 1
      }, _parent));
    };
  }
});
const SubmitComplete_vue_vue_type_style_index_0_scoped_a26973af_lang = "";
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/helpCenter/SubmitComplete.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
const SubmitComplete = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a26973af"]]);
export {
  SubmitComplete as default
};
